﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewAllCandidate.aspx.cs"
    Inherits="CTEA_INDIA.ViewAllCandidate" Theme="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/MenuList.ascx" TagName="Menu" TagPrefix="m1" %>
<%@ Register Src="~/Header.ascx" TagName="header" TagPrefix="uc" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>All Candidates</title>
    <link href="CSS/Stylsheet.css" rel="stylesheet" type="text/css" />
    <link href="CSS/MyStyle.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            height: 27px;
        }
        .style2
        {
            height: 25px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <div>
        <uc:header runat="server" ID="aa" />
    </div>
    <div class="toporagne">
        <%--<img src="Images/top_orange-strip.jpg" />--%>
        <hr size="10" color="#091247" width="900px" />
    </div>
    <div>
        <center>
            <div>
                <table width="900px" border="0">
                    <tr>
                        <td valign="top" align="center">
                            <table width="100%" border="0" class="MainDiv">
                                <tr>
                                    <td valign="top" width="200px">
                                        <m1:Menu runat="server" ID="menu" />
                                    </td>
                                    <td valign="top">
                                        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upPnlCandidate">
                                            <ProgressTemplate>
                                                <center>
                                                    <div id="pageLoading">
                                                        <center>
                                                            <img src="Images/loading123.gif" style="z-index: 5000; top: 50%; left: 50%; position: absolute;"
                                                                alt="loading" />
                                                            <div style="color: White; font-size: 18px; top: 50%; left: 50%;">
                                                                Loading...
                                                            </div>
                                                        </center>
                                                        <div id="transparentBg" class="transparentBg">
                                                        </div>
                                                    </div>
                                                </center>
                                            </ProgressTemplate>
                                        </asp:UpdateProgress>
                                        <asp:UpdatePanel ID="upPnlCandidate" runat="server">
                                            <ContentTemplate>
                                                <table border="0" width="100%">
                                                    <tr>
                                                        <td class="myaccount">
                                                            <asp:Label ID="Label1" runat="server" Text="All Candidate" CssClass="headingpage"></asp:Label><br />
                                                            <div class="imgstrip">
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="50px">
                                                            <div style="float: left">
                                                                <asp:DropDownList ID="ddlLocation" runat="server" Enabled="false" OnSelectedIndexChanged="ddlLocation_SelectedIndexChanged"
                                                                    AutoPostBack="true">
                                                                </asp:DropDownList>
                                                            </div>
                                                            <asp:Label ID="Label2" runat="server" Text="Search:" CssClass="Label"></asp:Label>
                                                            <asp:DropDownList ID="ddlSearchApplyFor" runat="server" Width="170px" AutoPostBack="true"
                                                                EnableViewState="true" OnSelectedIndexChanged="ddlSearchApplyFor_SelectedIndexChanged">
                                                                <asp:ListItem Text="View all" Value="0" Selected="True"></asp:ListItem>
                                                                <asp:ListItem Text="Acting" Value="Acting">
                                                                </asp:ListItem>
                                                                <asp:ListItem Text="Dancing" Value="Dancing"></asp:ListItem>
                                                            </asp:DropDownList>
                                                            <asp:TextBox ID="txtName" runat="server" AutoPostBack="True"></asp:TextBox>
                                                            <asp:TextBoxWatermarkExtender ID="txtName_TextBoxWatermarkExtender" WatermarkText="Enter Name to Search"
                                                                WatermarkCssClass="Watermarktxt" runat="server" TargetControlID="txtName">
                                                            </asp:TextBoxWatermarkExtender>
                                                            <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="btnsubmit" OnClick="btnSearch_Click2" />
                                                            <br />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td valign="top" width="500px" align="center">
                                                            <asp:GridView ID="gdCandidateProfile" runat="server" BackColor="White" Width="100%"
                                                                BorderColor="#DEDFDE" DataKeyNames="candidateId" BorderStyle="None" BorderWidth="1px"
                                                                CellPadding="4" ForeColor="Black" GridLines="Vertical" AllowPaging="True" AutoGenerateColumns="False"
                                                                OnRowDataBound="gdCandidateProfile_RowDataBound" EmptyDataText="No data found."
                                                                OnPageIndexChanging="gdCandidateProfile_PageIndexChanging">
                                                                <AlternatingRowStyle BackColor="White" />
                                                                <Columns>
                                                                    <asp:BoundField HeaderText="Name" DataField="Name" ItemStyle-Width="120px">
                                                                        <ItemStyle Width="200px" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="EmailId" DataField="EmailId" ItemStyle-Width="200">
                                                                        <ItemStyle Width="200px" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Location" DataField="location" ItemStyle-Width="80">
                                                                        <ItemStyle Width="80px" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Apply For" DataField="Apply_For" ItemStyle-Width="80">
                                                                        <ItemStyle Width="120px" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="abc" DataField="MobileNo" Visible="false"></asp:BoundField>
                                                                    <asp:BoundField DataField="MobileNo" Visible="false" />
                                                                    <asp:TemplateField>
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="lnkView" runat="server" Text="View" ForeColor="#0066FF" ItemStyle-Width="10"
                                                                                OnClick="lnkView_Click2" CausesValidation="false"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField>
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="lnkEdit" runat="server" Text="Edit" ForeColor="#0066FF" ItemStyle-Width="10"
                                                                                OnClick="lnkEdit_Click2" CausesValidation="false"></asp:LinkButton>
                                                                            <asp:LinkButton ID="lnkHidden" runat="server" ForeColor="#0066FF"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField>
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="lnkDelete" OnClick="lnkDelete_Click2" runat="server" Text="Delete" ForeColor="#0066FF" ItemStyle-Width="10"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <EmptyDataRowStyle CssClass="errorSpan" Font-Bold="True" Font-Size="15pt" ForeColor="Red" />
                                                                <FooterStyle BackColor="#CCCC99" />
                                                                <HeaderStyle BackColor="#021D48" Font-Bold="True" ForeColor="white" />
                                                                <PagerStyle ForeColor="#CCCCCC" HorizontalAlign="right" BackColor="#843808" />
                                                                <SelectedRowStyle BackColor="#000099" ForeColor="White" Font-Bold="True" />
                                                                <AlternatingRowStyle BackColor="#E2EDFE" />
                                                            </asp:GridView>
                                                            <asp:Button ID="btnHiddenPerson" runat="Server" Style="display: none" />
                                                            <asp:ModalPopupExtender ID="lnkView_ModalPopupExtender" runat="server" TargetControlID="btnHiddenPerson"
                                                                CancelControlID="cancelBtnView" PopupControlID="pnlLnkView" BackgroundCssClass="modalBackground">
                                                            </asp:ModalPopupExtender>
                                                            <asp:Panel ID="pnlLnkView" runat="server">
                                                                <table width="600px" class="ModalPopup" border="0" cellpadding="3" cellspacing="2"
                                                                    style="margin-left: 50px">
                                                                    <tr>
                                                                        <td colspan="4">
                                                                            <div style="float: right">
                                                                                <img src="Images/newsletter_close.PNG" alt="close" runat="server" id="cancelBtnView" /></div>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="4" class="gdheading">
                                                                            Candidate's Detail
                                                                            <hr />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="style2">
                                                                            Name:
                                                                        </td>
                                                                        <td width="150px" class="style2">
                                                                            <%-- <%#Eval("Name")%>--%>
                                                                            <asp:Label ID="lblName" runat="server"></asp:Label>
                                                                        </td>
                                                                        <%--   <td rowspan="2" colspan="2" align="right">
                                                                                            <img src="ProfilePhoto/<%#Eval("ProfPic")%>" alt="<%#Eval("ProfPic")%>" width="80"
                                                                                                height="80" style="padding: 2px; border: 1px solid #CCCCCC" />
                                                                                        </td>--%>
                                                                    </tr>
                                                                    <tr id="trAdd" runat="server">
                                                                        <td class="tdheader modalCandidate">
                                                                            Address:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <%--   <%#Eval("Address")%>--%>
                                                                            <asp:Label ID="lblAddress" runat="server"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr id="trMobEmail" runat="server">
                                                                        <td class="tdheader modalCandidate">
                                                                            Mobile No.:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <%--<%#Eval("MobileNo")%>--%>
                                                                            <asp:Label ID="lblMobileNo" runat="server"></asp:Label>
                                                                        </td>
                                                                        <td class="tdheader modalCandidate">
                                                                            EmailId:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <asp:Label ID="lblEmailId" runat="server" Text=""></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="tdheader modalCandidate">
                                                                            Age:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <%--  <%#Eval("Age")%>--%>
                                                                            <asp:Label ID="lblAge" runat="server"></asp:Label>
                                                                        </td>
                                                                        <td class="tdheader modalCandidate">
                                                                            Gender:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <asp:Label ID="lblGender" runat="server" Text=""></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="tdheader modalCandidate">
                                                                            Education:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <asp:Label ID="lblEducation" runat="server" Text=""></asp:Label>
                                                                        </td>
                                                                        <td class="tdheader modalCandidate">
                                                                            Apply for:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <asp:Label ID="lblApply_For" runat="server" Text=""></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr id="trLocQua" runat="server">
                                                                        <td class="tdheader modalCandidate">
                                                                            Location:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <asp:Label ID="lblLocation" runat="server" Text=""></asp:Label>
                                                                        </td>
                                                                        <td class="tdheader modalCandidate">
                                                                            Qualification:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <%-- <%#Eval("Qualification")%>--%>
                                                                            <asp:Label ID="lblQualify" runat="server" Text=""></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr id="trGnmLoc" runat="server">
                                                                        <td class="tdheader modalCandidate">
                                                                            Guardian Name:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <%--  <%#Eval("Guardian_Name")%>--%>
                                                                            <asp:Label ID="lblGuardianName" runat="server" Text=""></asp:Label>
                                                                        </td>
                                                                        <td class="tdheader modalCandidate">
                                                                            Guardian Location:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <%--<%#Eval("Guardian_Location")%>--%>
                                                                            <asp:Label ID="lblGuardianLoc" runat="server" Text=""></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr id="trGcoRel" runat="server">
                                                                        <td class="tdheader modalCandidate">
                                                                            Guardian ContactNo:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <%--<%#Eval("Guardian_ContactNo")%>--%>
                                                                            <asp:Label ID="lblGuardian_Contno" runat="server" Text=""></asp:Label>
                                                                        </td>
                                                                        <td class="tdheader modalCandidate">
                                                                            Relationship:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <asp:Label ID="lblRelationShip" runat="server" Text=""></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="tdheader modalCandidate">
                                                                            Approach Through:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <%--<%#Eval("HowKnow_Ctea")%>--%>
                                                                            <asp:Label ID="lblApprochThru" runat="server" Text=""></asp:Label>
                                                                        </td>
                                                                        <td class="tdheader modalCandidate">
                                                                            Occupation:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <%--   <%#Eval("Occupation")%>--%>
                                                                            <asp:Label ID="lblOccupa" runat="server" Text=""></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </asp:Panel>
                                                            <asp:Button ID="btnHiddenPerson1" runat="Server" Style="display: none" />
                                                            <asp:ModalPopupExtender ID="lnkEdit_ModalPopupExtender" runat="server" TargetControlID="btnHiddenPerson1"
                                                                CancelControlID="cancelBtnEdit" PopupControlID="pnlLnkEdit" BackgroundCssClass="modalBackground">
                                                            </asp:ModalPopupExtender>
                                                            <asp:Panel ID="pnlLnkEdit" runat="server">
                                                                <table width="600px" class="ModalPopup">
                                                                    <tr>
                                                                        <td colspan="4">
                                                                            <div style="float: right">
                                                                                <img src="Images/newsletter_close.PNG" alt="close" runat="server" id="cancelBtnEdit" /></div>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="4" class="gdheading">
                                                                            Update Candidate's Detail
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="4" class="style1">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="tdheader">
                                                                            Name:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtNamee" runat="server"></asp:TextBox>
                                                                        </td>
                                                                        <td class="tdheader">
                                                                            Address:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtAdd" runat="server" TextMode="MultiLine" Rows="3" Columns="20"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="tdheader">
                                                                            Mobile No.:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtMob" MaxLength="10" runat="server"></asp:TextBox>
                                                                        </td>
                                                                        <td class="tdheader">
                                                                            EmailId:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtEmail" runat="server" Enabled="false"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="tdheader">
                                                                            Date Of Birth:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtDob" runat="server"></asp:TextBox>
                                                                            <asp:CalendarExtender ID="ceDate" runat="server" TargetControlID="txtDob" DefaultView="Years">
                                                                            </asp:CalendarExtender>
                                                                        </td>
                                                                        <td class="tdheader">
                                                                            Gender:
                                                                        </td>
                                                                        <td>
                                                                            <asp:RadioButtonList ID="rdGender" runat="server" RepeatDirection="Horizontal">
                                                                                <asp:ListItem Value="Male" Selected="True" Text="Male"></asp:ListItem>
                                                                                <asp:ListItem Value="Female" Text="Female"></asp:ListItem>
                                                                            </asp:RadioButtonList>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="tdheader">
                                                                            Education:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtEducation" runat="server"></asp:TextBox>
                                                                        </td>
                                                                        <td class="tdheader">
                                                                            Apply For
                                                                        </td>
                                                                        <td>
                                                                            <asp:DropDownList ID="ddlApplyFor" runat="server" Width="100px">
                                                                            </asp:DropDownList>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="tdheader">
                                                                            Qualification:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtQuali" runat="server"></asp:TextBox>
                                                                        </td>
                                                                        <td class="tdheader">
                                                                            Location:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtLocation" runat="server"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="tdheader">
                                                                            Guardian Name:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtGuaName" runat="server"></asp:TextBox>
                                                                        </td>
                                                                        <td class="tdheader">
                                                                            Guardian Location:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtGuaLoc" runat="server"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="tdheader">
                                                                            Guardian ContactNo:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtGuaCno" runat="server" MaxLength="15"></asp:TextBox>
                                                                        </td>
                                                                        <td class="tdheader">
                                                                            Occupation:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtOccup" runat="server"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="tdheader">
                                                                            Relationship:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtGuaRela" runat="server"></asp:TextBox>
                                                                        </td>
                                                                        <td class="tdheader">
                                                                            Profile Pic:
                                                                        </td>
                                                                        <td>
                                                                            <%-- <edititemtemplate>--%>
                                                                            <asp:FileUpload ID="fuPic" runat="server" /><%--</edititemtemplate>--%>
                                                                            <br />
                                                                            <asp:Label ID="lblPathName" runat="server" ForeColor="Green" Text=""></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="4">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="4" align="center">
                                                                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                                                <ContentTemplate>
                                                                                    <asp:Button ID="btnUpdate" runat="server" CssClass="btnsubmit" Text="Update" Height="26px"
                                                                                        OnClick="btnUpdate_Click2" />
                                                                                </ContentTemplate>
                                                                                <Triggers>
                                                                                    <asp:PostBackTrigger ControlID="btnUpdate" />
                                                                                </Triggers>
                                                                            </asp:UpdatePanel>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </asp:Panel>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </center>
    </div>
    <div>
    </div>
    </form>
</body>
</html>
